package com.perceptivesoftware.licensing.client.dialogs.useradmin.plugin.role;

import com.perceptivesoftware.licensing.client.dialogs.useradmin.plugin.SecurityManagerNavItem;

public class RoleNavItem extends SecurityManagerNavItem {

	private String roleCode;

	private RoleNavItem() {
		super(null);
	}

	public RoleNavItem(final String name, final String roleCode) {
		super(name);
		this.roleCode = roleCode;
	}

	public String getRoleCode() {
		return roleCode;
	}

	@SuppressWarnings("unused")
	// for Serialization
	private void setRoleCode(final String roleCode) {
		this.roleCode = roleCode;
	}

	@Override
	public String getToolTip() {
		return "Role Code: " + roleCode;
	}

}
